<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html lang="zh-CN">
<head>
<style type="text/css">
#valDiv {
	border: 1px solid gray;
	width: 800px;
	height: 300px;
	background-color: #ccc;
}
</style>
</head>
<body>
	<h4>缓存查询</h4>
	<div>
		<input style="width: 300px;" id="key" />
		<button id="btnQuery">查询</button>
		<div id="valDiv"></div>
	</div>
</body>
<script src="../static/jquery-1.11.0.js"></script>
<script type="text/javascript">
	$(function() {
		$("#btnQuery").click(function() {
			$("#valDiv").html("查找中...");
			$.post("findFromRedis.htm", {
				t : new Date(),
				key : $("#key").val().trim()
			}, function(data) {
				$("#valDiv").html(data.val);
			}, "json");

		});
	});
</script>
</html>
